aux_source_directory(src/ClientRPC RPC_CLIENT_SRC)
aux_source_directory(src/AlgorithmIPC RPC_ALGORITHM_SRC)
aux_source_directory(src/Web/src WEB_BACKEND_SRC)

find_package(spdlog REQUIRED)
find_package(Crow REQUIRED)

include_directories(../Thrift/Client ../Thrift/Algorithm)
link_libraries(ClientIPC spdlog::spdlog AlgorithmIPC thrift Crow::Crow)

add_executable(ControlClient run/ControlClient.cpp ${RPC_CLIENT_SRC})

add_executable(WebBackend run/WebBackend.cpp ${WEB_BACKEND_SRC})

add_custom_target(
  Typescript_Build ALL
  tsc
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/Web/UI)
